package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;

import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

/**
 * Created by Administrator on 2018/11/8 0008.
 */
@Entity
@Table(name = "t_sys_milk", schema = "oa", catalog = "")
public class MilkEntity extends BaseEntity {
    private String information;//联系方式
    private String doorNumber;//门牌号
    private String remark;//建议
    private String wxId;//微信id
    private String wxName;//微信name
    private Integer buyFlag;//购买状态 未购买/已购买
    private String t1;
    private String t2;
    private String t3;
    private String t4;
    private String t5;
    private String t6;
    private String t7;
    private String t8;
    private String t9;
    private String t10;
    private String t11;
    private String t12;
    private String t13;
    private String t14;

    public String getInformation() {
        return information;
    }

    public void setInformation(String information) {
        this.information = information;
    }

    public String getDoorNumber() {
        return doorNumber;
    }

    public void setDoorNumber(String doorNumber) {
        this.doorNumber = doorNumber;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getWxId() {
        return wxId;
    }

    public void setWxId(String wxId) {
        this.wxId = wxId;
    }

    public String getWxName() {
        return wxName;
    }

    public void setWxName(String wxName) {
        this.wxName = wxName;
    }

    public Integer getBuyFlag() {
        return buyFlag;
    }

    public void setBuyFlag(Integer buyFlag) {
        this.buyFlag = buyFlag;
    }

    public String getT1() {
        return t1;
    }

    public void setT1(String t1) {
        this.t1 = t1;
    }

    public String getT2() {
        return t2;
    }

    public void setT2(String t2) {
        this.t2 = t2;
    }

    public String getT3() {
        return t3;
    }

    public void setT3(String t3) {
        this.t3 = t3;
    }

    public String getT4() {
        return t4;
    }

    public void setT4(String t4) {
        this.t4 = t4;
    }

    public String getT5() {
        return t5;
    }

    public void setT5(String t5) {
        this.t5 = t5;
    }

    public String getT6() {
        return t6;
    }

    public void setT6(String t6) {
        this.t6 = t6;
    }

    public String getT7() {
        return t7;
    }

    public void setT7(String t7) {
        this.t7 = t7;
    }

    public String getT8() {
        return t8;
    }

    public void setT8(String t8) {
        this.t8 = t8;
    }

    public String getT9() {
        return t9;
    }

    public void setT9(String t9) {
        this.t9 = t9;
    }

    public String getT10() {
        return t10;
    }

    public void setT10(String t10) {
        this.t10 = t10;
    }

    public String getT11() {
        return t11;
    }

    public void setT11(String t11) {
        this.t11 = t11;
    }

    public String getT12() {
        return t12;
    }

    public void setT12(String t12) {
        this.t12 = t12;
    }

    public String getT13() {
        return t13;
    }

    public void setT13(String t13) {
        this.t13 = t13;
    }

    public String getT14() {
        return t14;
    }

    public void setT14(String t14) {
        this.t14 = t14;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject json = new JSONObject();
        json.put("ID", this.getId());
        json.put("INFORMATION", this.getInformation());
        json.put("DOOR_NUMBER", this.getDoorNumber());
        json.put("REMARK", this.getRemark());
        json.put("WX_ID", this.getWxId());
        json.put("WX_NAME", this.getWxName());
        json.put("BUY_FLAG", this.getBuyFlag());
        json.put("CREATE_TIME", this.getCreateTime());
        json.put("T1", this.getT1());
        json.put("T2", this.getT2());
        json.put("T3", this.getT3());
        json.put("T4", this.getT4());
        json.put("T5", this.getT5());
        json.put("T6", this.getT6());
        json.put("T7", this.getT7());
        json.put("T8", this.getT8());
        json.put("T9", this.getT9());
        json.put("T10", this.getT10());
        json.put("T11", this.getT11());
        json.put("T12", this.getT12());
        json.put("T13", this.getT13());
        json.put("T14", this.getT14());
        return json;
    }

    @Override
    public String getTableName() {
        return "t_sys_milk";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject json = new JSONObject();
        json.put("ID", "id");
        json.put("INFORMATION", "information");
        json.put("DOOR_NUMBER", "doorNumber");
        json.put("REMARK", "remark");
        json.put("WX_ID", "wxId");
        json.put("WX_NAME", "wxName");
        json.put("BUY_FLAG", "buyFlag");
        json.put("CREATE_TIME", "createTime");
        json.put("T1", "t1");
        json.put("T2", "t2");
        json.put("T3", "t3");
        json.put("T4", "t4");
        json.put("T5", "t5");
        json.put("T6", "t6");
        json.put("T7", "t7");
        json.put("T8", "t8");
        json.put("T9", "t9");
        json.put("T10", "t10");
        json.put("T11", "t11");
        json.put("T12", "t12");
        json.put("T13", "t13");
        json.put("T14", "t14");
        return json;
    }

}
